package com.gs.gaosheng.domain;

import com.gs.common.annotation.Excel;
import com.gs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品图对象 gs_imgs
 *
 * @author yy
 * @date 2023-08-03
 */
public class GsImgs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long imgId;

    /** 商品id，关联商品表 */
    @Excel(name = "商品id，关联商品表")
    private Long goodsId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsImg;

    /** 类型：1商品详情的第一张大图 2商品详情页的小图 */
    @Excel(name = "类型：1商品详情的第一张大图 2商品详情页的小图")
    private Long imgType;

    public void setImgId(Long imgId)
    {
        this.imgId = imgId;
    }

    public Long getImgId()
    {
        return imgId;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setGoodsImg(String goodsImg)
    {
        this.goodsImg = goodsImg;
    }

    public String getGoodsImg()
    {
        return goodsImg;
    }
    public void setImgType(Long imgType)
    {
        this.imgType = imgType;
    }

    public Long getImgType()
    {
        return imgType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("imgId", getImgId())
            .append("goodsId", getGoodsId())
            .append("goodsImg", getGoodsImg())
            .append("imgType", getImgType())
            .toString();
    }
}
